<?php

class set_bidang_studiTable extends Doctrine_Table
{
        public function getBidangStudiList() {
        $q = Doctrine_Query::create()
                ->select('id', 'nama')
                ->from('set_bidang_studi b');

        $q = $q->execute();

        $result = array();
        foreach($q as $r) {
            $result[$r->getId()] = $r->getNama();
        }

        return $result;
    }

}